package cn.edu.xmu.oomall.share.microservice;

import cn.edu.xmu.oomall.share.microservice.vo.CustomerVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "customer-service")
public interface CustomerService {
    @GetMapping("/internal/shops/{shopId}/customers/{id}")
    InternalReturnObject<CustomerVo> getUserById(@PathVariable("shopId") Long shopId, @PathVariable("id") Long userId);
}